package com.example.qxfw.dysjrh.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.qxfw.dysjrh.entity.vo.AtmosphericVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
@DS("master")
public interface AtmosphericMapper {

    List<AtmosphericVo> getAtmosphericHour(@Param("startTime") LocalDateTime startTime,
                                           @Param("endTime") LocalDateTime endTime,
                                           @Param("stationName") String stationName);

    List<AtmosphericVo> getAtmosphericDay(@Param("startTime") LocalDateTime startTime,
                                          @Param("endTime") LocalDateTime endTime,
                                          @Param("stationName") String stationName);
}
